package cn.ixinjiu.libraryMangement.service.impl;

import cn.ixinjiu.libraryMangement.dao.IBookSortDao;
import cn.ixinjiu.libraryMangement.dao.impl.BookSortDaoImpl;
import cn.ixinjiu.libraryMangement.entity.BookSort;
import cn.ixinjiu.libraryMangement.service.IBookSortService;

import java.util.List;

/**
 * Created by XinChen on 2023-05-22
 *
 * @TODO
 */
public class BookSortServiceImpl implements IBookSortService {
    private IBookSortDao iBookSortDao = new BookSortDaoImpl();
    @Override
    public List<BookSort> bookSorts() {
        return iBookSortDao.bookSorts();
    }

    @Override
    public int count() {
        return iBookSortDao.count();
    }

    @Override
    public int bookSortDel(int id) {
        return iBookSortDao.bookSortDel(id);
    }

    @Override
    public int bookSortUpd(BookSort bookSort) {
        return iBookSortDao.bookSortUpd(bookSort);
    }

    @Override
    public int bookSortAdd(BookSort bookSort) {
        return iBookSortDao.bookSortAdd(bookSort);
    }

    @Override
    public BookSort getBookSortById(int id) {
        return iBookSortDao.getBookSortById(id);
    }
}
